package com.example.mvvmtest.test;

/**
 * 静态代理
 */
public class StaticProxy implements ProxyInterface {
    private ProxyImp proxyImp;

    public StaticProxy(ProxyImp proxyImp) {
        this.proxyImp = proxyImp;
    }

    @Override
    public String getMsg() {
        return proxyImp.getMsg();
    }

    @Override
    public void sendMsg(String msg) {
        proxyImp.sendMsg(msg);
    }
}
